package com.yuwei.order

import com.yuwei.common.mvi.UiIntent
import com.yuwei.database.entity.AddressEntity
import com.yuwei.database.entity.OrderEntity

sealed class OrderIntent: UiIntent {
    data class insertOrder(val orderEntity: OrderEntity): OrderIntent()
    data class updateOrder(val orderEntity: OrderEntity): OrderIntent()
    object getAllAddress: OrderIntent()
    data class insertAddress(val addressEntity: AddressEntity): OrderIntent()
    data class updateAddress(val addressEntity: AddressEntity): OrderIntent()
    data class getByStatus(val status: Int) : OrderIntent()
}